FROM nginx:alpine

# 清理默认配置并创建必要目录
RUN mkdir -p /opt/dist

# 复制前端文件和配置
COPY ./dist /opt/dist
COPY ./conf/nginx.conf /etc/nginx/nginx.conf

# 暴露9528端口
EXPOSE 9528

CMD ["nginx", "-g", "daemon off;"]

